package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Timestamp;
import java.util.Date;

public class UserCar {
    private Integer id;

    private Integer userId;

    private Integer carId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp intime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp outtime;

    private String username;  //使用者姓名
    private String carname;   //车位名称



    public UserCar() {
    }

    public UserCar(Integer id, Integer userId, Timestamp intime, Timestamp outtime, String username) {
        this.id = id;
        this.userId = userId;
        this.intime = intime;
        this.outtime = outtime;
        this.username = username;
    }

    public UserCar(Integer userId, Integer carId, Timestamp intime, Timestamp outtime) {
        this.userId = userId;
        this.carId = carId;
        this.intime = intime;
        this.outtime = outtime;
    }

    public UserCar(Integer id, Integer userId, String username, Timestamp intime, Timestamp outtime) {
        this.id = id;
        this.userId = userId;
        this.intime = intime;
        this.outtime = outtime;
        this.username = username;
    }

    public UserCar(Integer id, Integer userId, Integer carId, Timestamp intime, Timestamp outtime, String username, String carname) {
        this.id = id;
        this.userId = userId;
        this.carId = carId;
        this.intime = intime;
        this.outtime = outtime;
        this.username = username;
        this.carname = carname;
    }


    public UserCar(Integer id, Integer userId, Integer carId, Timestamp intime, Timestamp outtime) {
        this.id = id;
        this.userId = userId;
        this.carId = carId;
        this.intime = intime;
        this.outtime = outtime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getCarname() {
        return carname;
    }

    public void setCarname(String carname) {
        this.carname = carname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public Date getIntime() {
        return intime;
    }

    public void setIntime(Timestamp intime) {
        this.intime = intime;
    }

    public Date getOuttime() {
        return outtime;
    }

    public void setOuttime(Timestamp outtime) {
        this.outtime = outtime;
    }


}